<template>
  <div class="front new-detail">
    <div class="header-box">
      <Header></Header>
    </div>
    <div class="new-container docWidth">
      <!-- <div class="mianbao">
        <span class="btn hover" @click="$router.push('/front-home')">首页</span>
        <span>></span>
        <span class="btn hover" @click="$router.push('/front-news')">资讯中心</span>
        <span>></span>
        <span class="btn">详情</span>
      </div>-->
      <div class="main">
        <!-- <div class="introduce doing">
          <img :src="detail.image" alt />
          <div class="left">
            <h2>{{detail.name}}</h2>
            <p>{{detail.viceName}}</p>
          </div>
        </div> -->
        <div class="remark" v-html="detail.remark"></div>
      </div>
    </div>

    <div class="footer">
      <Footer></Footer>
    </div>
  </div>
</template>

<script>
import { getNewDetail, getNewData } from "@/api/front-home.js";
import Footer from "@/views/front/components/Footer";
import Header from "@/views/front/components/Header";
export default {
  data() {
    return {
      detail: {},
      newsList: [],
    };
  },
  components: {
    Footer,
    Header,
  },
  created() {
    let id = this.$route.query.id;
    console.log(this.$route);
    this.getNewDetail(id);
  },
  methods: {
    getNewDetail(id) {
      getNewDetail({ id: id }).then((res) => {
        this.detail = res;
      });
    },
  },
};
</script>
<style >
.hover:hover {
  color: #965f29;
}
.new-detail .detail img {
  max-width: 100%;
}
</style>
<style lang="scss" scoped>
.new-detail {
  .new-container {
    overflow: hidden;
    padding-top: 52px;
    margin-bottom: 16px;
    .mianbao {
      height: 60px;
      line-height: 60px;
      font-size: 16px;
      font-family: Microsoft YaHei;
      font-weight: 300;
      color: #000000;
    }
    .main {
      line-height: 26px;
      .introduce {
        overflow: hidden;
        img {
          width: 555px;
          float: left;
          margin-right: 40px;
        }
        h2 {
          line-height: 1.5;
          font-size: 26px;
          font-family: Microsoft YaHei;
          font-weight: 400;
          color: #000000;
          margin-bottom: 16px;
        }

        p {
          line-height: 30px;
          font-size: 16px;
          font-family: Microsoft YaHei;
          font-weight: 300;
          color: #000000;
        }
      }
    }
  }
}
</style>